//gsoap ns service name: messenger
//gsoap ns service style: rpc
//gsoap ns service location: http//localhost:10000
//gsoap ns service encoding: encoded
//gsoap ns service namespace: http://someshit.org/foo/Example

struct manssage {
	char sender[20];
	char receive[20];
	char manssage[20];
	int nomr;
//time
};

struct FrienShip {
	int sender;
	int receive;
	char user[20];
};

struct Usuario {
	char nickName[20];
	int edad;
	int id;
	int lista_de_amigos[50];
	int cont_lista_amigos;
	struct manssage lista_de_Manssage[50];
	int cont_manssage;
	struct FrienShip friendRequestList[50];
	int iteradorFriendship;
	int dadoBaja;
};

struct ListaFriendShip{
	struct FrienShip frienShip[50];
	int iterador=0;
};
struct ListaUsuarios {
	struct Usuario listaUsuarios[50];
	int iterador;
};

struct ListaAmigos{
	int user;
	int lista_de_amigos_local[50];
};
///http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc14

struct ArrayOfSOAPService {
	struct ListaFriendShip *__ptr;
	int __size;
};
int ns__altaUsr(struct Usuario val, int* res, int* id);
int ns__bajaUsr(char * val, int* res, int* id);
int ns__loggin(char *usr, int *id, int *res);
int ns__enviar_solicitudes(int userId,int userIdFrom, int* res);
int ns__aceptar_Rechazar_solicitudes(int userId,struct ListaFriendShip *p);
int ns__aceptar_RechazarFriend(int respuestaUser,int userAcepter,int userSoliciter, int* res);
int ns__recibir_mensaje(struct Usuario user,struct Usuario* val);
int ns__comprobar_envio(struct Usuario val, int* res, int* id);
int ns__enviar_fichero(struct Usuario val, int* res, int* id);
int ns__recibir_fichero(struct Usuario val, int* res, int* id);


int ns__enviar_mensaje(struct Usuario user, int* res);


int ns__getUsersOnline(struct ListaFriendShip listaFriends, int* res);

int ns__getAllSOAPServices2(struct ListaFriendShip *p);
